import request from '@/utils/request'

// 查询设备状态信息列表
export function listEquipmentstate(query) {
  return request({
    url: 'information/equipmentstate/list',
    method: 'get',
    params: query
  })
}

// 查询设备状态信息详细
export function getEquipmentstate(id) {
  return request({
    url: '/information/equipmentstate/' + id,
    method: 'get'
  })
}

// 新增设备状态信息
export function addEquipmentstate(data) {
  return request({
    url: '/information/equipmentstate',
    method: 'post',
    data: data
  })
}

// 修改设备状态信息
export function updateEquipmentstate(data) {
  return request({
    url: '/information/equipmentstate',
    method: 'put',
    data: data
  })
}

// 删除设备状态信息
export function delEquipmentstate(id) {
  return request({
    url: '/information/equipmentstate/' + id,
    method: 'delete'
  })
}
